package com.sznaner.tool.util;

import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;

public class ScreenUtil {


    public static Boolean is4( ){
        if(heightPixels() == 480 && widthPixels() == 480){
            return true;
        }
        return false;
    }

    public static DisplayMetrics displayMetrics( ) {
        DisplayMetrics dm = new DisplayMetrics();
        WindowManager windowManager = (WindowManager) NRTool.context()
                .getSystemService(Context.WINDOW_SERVICE);
        windowManager.getDefaultDisplay().getMetrics(dm);
        return dm;
    }

    public static int widthPixels() {
        return displayMetrics().widthPixels;
    }

    public static int heightPixels() {
        return displayMetrics().heightPixels;
    }


}
